package com.ruoyi.property.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.property.mapper.ReportFeeSummaryInfoMapper;
import com.ruoyi.property.domain.ReportFeeSummaryInfo;
import com.ruoyi.property.service.IReportFeeSummaryInfoService;
import com.ruoyi.common.core.text.Convert;

/**
 * 费用汇总表Service业务层处理
 * 
 * @author sux
 * @date 2021-06-30
 */
@Service
public class ReportFeeSummaryInfoServiceImpl implements IReportFeeSummaryInfoService 
{
    @Autowired
    private ReportFeeSummaryInfoMapper reportFeeSummaryInfoMapper;

    /**
     * 查询费用汇总表
     * 
     * @param configId 费用汇总表ID
     * @return 费用汇总表
     */
    @Override
    public ReportFeeSummaryInfo selectReportFeeSummaryInfoById(Long configId)
    {
        return reportFeeSummaryInfoMapper.selectReportFeeSummaryInfoById(configId);
    }

    /**
     * 查询费用汇总表列表
     * 
     * @param reportFeeSummaryInfo 费用汇总表
     * @return 费用汇总表
     */
    @Override
    public List<ReportFeeSummaryInfo> selectReportFeeSummaryInfoList(ReportFeeSummaryInfo reportFeeSummaryInfo)
    {
        return reportFeeSummaryInfoMapper.selectReportFeeSummaryInfoList(reportFeeSummaryInfo);
    }

    /**
     * 新增费用汇总表
     * 
     * @param reportFeeSummaryInfo 费用汇总表
     * @return 结果
     */
    @Override
    public int insertReportFeeSummaryInfo(ReportFeeSummaryInfo reportFeeSummaryInfo)
    {
        return reportFeeSummaryInfoMapper.insertReportFeeSummaryInfo(reportFeeSummaryInfo);
    }

    /**
     * 修改费用汇总表
     * 
     * @param reportFeeSummaryInfo 费用汇总表
     * @return 结果
     */
    @Override
    public int updateReportFeeSummaryInfo(ReportFeeSummaryInfo reportFeeSummaryInfo)
    {
        return reportFeeSummaryInfoMapper.updateReportFeeSummaryInfo(reportFeeSummaryInfo);
    }

    /**
     * 删除费用汇总表对象
     * 
     * @param ids 需要删除的数据ID
     * @return 结果
     */
    @Override
    public int deleteReportFeeSummaryInfoByIds(String ids)
    {
        return reportFeeSummaryInfoMapper.deleteReportFeeSummaryInfoByIds(Convert.toStrArray(ids));
    }

    /**
     * 删除费用汇总表信息
     * 
     * @param configId 费用汇总表ID
     * @return 结果
     */
    @Override
    public int deleteReportFeeSummaryInfoById(Long configId)
    {
        return reportFeeSummaryInfoMapper.deleteReportFeeSummaryInfoById(configId);
    }
}
